<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.sql.*"%>
<%@include file="common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">

#a {
	color: blue;
	background-color: #FF9A00;
	display: block;
	text-decoration: none;
	font-family: cursive;
}

#a:HOVER {
	color: #FFFFFF;
	background-color: #FF4700;
	text-decoration: none;
	display: block;
	font-family: cursive;
}

#a:ACTIVE {
	background-color: #FF4700;
	text-decoration: none;
	display: block;
	font-family: cursive;
}
#a:LANG {
	color: #FFFFFF;
	background-color: #FF4700;
	text-decoration: none;
	display: block;
	font-family: cursive;
}

#b:HOVER {
	color: #FFFFFF;
	background-color: red;
	text-decoration: none;
	display: block;
}

#b:ACTIVE {
	background-color: red;
	text-decoration: none;
	display: block;
}
#b:LANG {
	color: #FFFFFF;
	background-color: red;
	text-decoration: none;
	display: block;
}
</style>
<SCRIPT language=JavaScript>
	function checkinput(){
		if(document.frmView.keyword.value==""){
			alert("Xin vui lòng nhập từ khóa cần tìm");
			document.frmView.keyword.focus();
			return false;
		}
		return true;
	}
</SCRIPT>
</head>
<body>
	<img src="/BanHang/image/logo.png" alt="logo" width=1024 height=150>
	<table width=1024 height=30 align=center>
		<tr height=30>
			<td width=16% bgcolor=#FF9A00 align="center"><a id="a" href="index.jsp"><b>Trang chủ</b></a></td>
			<td width=16% bgcolor=#FF9A00 align="center"><a id="a" href="search_by_room_id.jsp"><b>Tìm kiếm</b></a></td>
			<td width=16% bgcolor=#FF9A00 align="center"><a id="a" href="search_by_room_name.jsp"><b>Tìm kiếm theo tên</b></a></td>
			<td width=16% bgcolor=#FF9A00 align="center"><a id="a" href="service_manager.jsp"><b>Quản lý dịch vụ</b></a></td>
			<td width=16% bgcolor=#FF9A00 align="center"><a id="a" href="customer_manager.jsp"><b>Quản lý khách hàng</b></a></td>
			<td width=16% bgcolor=#FF9A00 align="center"><a id="a" href="admin.jsp"><b>Quản lí</b></a></td>
 			<td width=20% >
				<form name="frmView" method="POST" action="result1.jsp" onSubmit="return checkinput();">
					<input type=text name="keyword" size="10">
					<input type=submit value="Tìm kiếm">
				</form>
			</td>
		</tr>
<%
	String user=getVal((String)session.getValue("userid"),"");
	if(!(user.equals("")|| user.equals("0") || user.equals("-1")|| user.equals("-2"))) 
	{
		out.println("<tr heigth=30 >");
		out.println("<td width=50% bgcolor=#0067FF colspan=3 align=center><a id='b' href=../service/service_manager.jsp><font color=white>Quản lí dịch vụ</font></a></td>");
		out.println("<td width=50% bgcolor=#0067FF colspan=3 align=center><a id='b' href=customermanager.jsp><font color=white>Quản lí khách hàng</font></a></td>");
		out.println("</tr>");
		out.println("<tr heigth=30 >");
		out.println("<td width=50% bgcolor=#0067FF colspan=3 align=center><a id='b' href=adsmanager.jsp><font color=white>Quản lí quảng cáo</font></a></td>");
		out.println("<td width=50% bgcolor=#0067FF colspan=3 align=center><a id='b' href=logout.jsp><font color=white>Đăng xuất</font></a></td>");
		out.println("</tr>");
	}
%>
	</table>
</body>
</html>